<%@ page language="java" contentType="text/xml; charset=UTF-8" pageEncoding="UTF-8"  trimDirectiveWhitespaces="true" session="false" %>
<%@include file="../include/taglibs.jsp"%>
<%@include file="../include/urls.jsp"%>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<c:set var="playerUrl" value="${playersUrl}${player.name}/" />

<player	href="${playerUrl}">
		<name>${fn:escapeXml(player.name)}</name> 
		<loginTime>${fn:escapeXml(player.loginTime)}</loginTime>
		<games>
			<c:forEach var="game" items="${player.games}">
			<game href="${gamesUrl}${game.id}/"> 
				<id>${game.id}</id> 
				<title>${game.title}</title>
				<creationTime>${game.creationTime}</creationTime>
			</game>
			</c:forEach>
		</games>
		<boards>
			<c:forEach var="board" items="${player.boards}">
			<board href="${boardsUrl}${board.id}" />
			</c:forEach>
		</boards>
</player>